package com.xdf.whiteaccount.dao;

import com.xdf.whiteaccount.entity.ContactCompany;
import org.springframework.stereotype.Repository;
import java.util.List;
import com.xdf.whiteaccount.entity.Defectivegoods;
import com.xdf.whiteaccount.utils.Example;
import org.apache.ibatis.annotations.Param;

/**
 * 版本号：20240401
 * @Description : 注意自定义代码写在最后，避免二开时覆盖自定义方法
 * @Author : chanchaw
 * @Date :  2025-9-5 14:54:28
 */
@Repository
public interface DefectivegoodsMapper {
    int insert(Defectivegoods record);

    int insertSelective(Defectivegoods record);

    int multiInsert(List<Defectivegoods> list);

    int updateByPrimaryKey(Defectivegoods record);

    int updateByPrimaryKeySelective(Defectivegoods record);

    // 根据主键删除
    int deleteByPrimaryKey(Integer B_itemId);
    // 根据主键查询
    Defectivegoods selectByPrimaryKey(Integer B_itemId);

    List<Defectivegoods> selectAll();

    int save(Defectivegoods record);
    int multiSave(List<Defectivegoods> list);
    Defectivegoods selectBySid(String sid);

    //================= 下面是 Example 代码 ==================
    List<Defectivegoods> selectByExample(@Param("example") Example example);
    int updateByExampleSelective(@Param("record") Defectivegoods record,@Param("example") Example example);
    int insertByExampleSelective(@Param("record") Defectivegoods record,@Param("example") Example example);
    int deleteByExample(@Param("example") Example example);
    //=================以上是自动生成的代码，自定义代码请写在下面==================
    List<Defectivegoods> selectByParam(Defectivegoods record);
}